package com.basin.micro.admin.module.employee.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mp.annotation.RequireValFields;
import com.basin.common.mp.annotation.UniqueKeys;
import com.basin.common.mp.base.BaseEntity;
import com.basin.common.mp.base.SexEnum;
import com.basin.micro.admin.module.employee.pojo.enums.EmployeeStatEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("basin_admin_employee")
@RequireValFields(fields = {"emp_name", "dept_code", "position_code", "emp_sex", "enter_time"})
@UniqueKeys(fields = {"emp_id", "emp_code", "emp_name"})
public class EmployeeEntity extends BaseEntity {
    private String empId;
    private String deptCode;
    private String positionCode;
    private String empCode;
    private String empName;
    private SexEnum empSex;
    private String empDesc;
    private EmployeeStatEnum empStatus;
    private Date enterTime;
    private Date leaveTime;
}
